home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Tool Chest / Dev.CD Aug 98 TC.toast / What's New? / Software Development Kits / Mac OS USB DDK / MacOS USB DDK 1.0b4 / NeptuneDDK / Tools / NeptuneDDKBuildAll next >
Encoding:
Text File  |  1998-06-26  |  2.5 KB  |  97 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        NeptuneDDKBuildProject
  3. #
  4. #    Contains:    Build Script for NeptuneDDK
  5. #
  6. #    Version:    xxx put version here xxx
  7. #
  8. #    Copyright:    © 1997-1998 by Apple Computer, Inc., all rights reserved.
  9. #
  10.  
  11. set Commands `Directory`Tools:,"{Commands}"
  12. export Commands
  13.  
  14. unset BuildTargets
  15.  
  16. set DebugBuild 0
  17. export DebugBuild
  18.  
  19. Set t7 `Date -n`
  20. Set t8 "`Date -s`"
  21.  
  22. Open "{Worksheet}"
  23.  
  24. Echo "#******************************************************************************************************"
  25. if "{1}" == 'clean'
  26.     Echo "# Clean & Build DDK drivers & examples"
  27.     Echo "#   Deleting all files in "{USBDDKObjects}
  28.     echo "Test" >"{USBDDKObjects}Test"
  29.     delete -i -y "{USBDDKObjects}"≈
  30.     
  31.     Echo "#   Deleting all files in "{USBDDKReleaseExtensions}
  32.     echo "Test" >"{USBDDKReleaseExtensions}Test"
  33.     delete -i -y "{USBDDKReleaseExtensions}"≈
  34. else
  35.     if "{1}" == 'full'
  36.         Echo "# Full build all USB drivers"
  37.     else
  38.         Echo "# Build all USB drivers"
  39.     end
  40. end
  41.     
  42. if `Exists "{USBDDKTargets}Drivers:"`
  43.     Echo "#   …Targets:Drivers folder still exists (no need to create it)"
  44. else
  45.     NewFolder "{USBDDKTargets}Drivers"
  46. end
  47.  
  48. if `Exists "{USBDDKTargets}Utilities:"`
  49.     Echo "#   …Targets:Utilities folder still exists (no need to create it)"
  50. else
  51.     NewFolder "{USBDDKTargets}Utilities"
  52. end
  53.  
  54. if `Exists "{NeptuneDDKFolder}Drivers"`
  55.     For i In `Files -af -f -d "{NeptuneDDKFolder}Drivers"`                    # For all directories within the  Drivers folder....
  56.         (Evaluate "{i}" =~ /≈':'≈':'(≈)®1':'/) ∑ dev:null                    # Get the name of the folder, put in ®1
  57.         Directory "{i}" 
  58.         set -e USBDDKDriverPath {i} 
  59.         set -e USBDDKDriver {®1}
  60.         set exit 0
  61.         execute NeptuneDDKBuildDriver {1}
  62.     End
  63. End
  64.  
  65. if `Exists "{NeptuneDDKFolder}Examples"`
  66.     For i In `Files -af -f -d "{NeptuneDDKFolder}Examples"`                    # For all directories within the  Drivers folder....
  67.         (Evaluate "{i}" =~ /≈':'≈':'(≈)®1':'/) ∑ dev:null                    # Get the name of the folder, put in ®1
  68.         Directory "{i}" 
  69.         set -e USBDDKDriverPath {i} 
  70.         set -e USBDDKDriver {®1}
  71.         set exit 0
  72.         execute NeptuneDDKBuildDriver {1}
  73.     End
  74. End
  75.  
  76.  
  77. directory "{NeptuneDDKFolder}"
  78.  
  79. Set t2 `Date -n`
  80. Set t3 "`Date -s`"
  81.  
  82. echo "#   Started: "{t0}
  83. echo "# Completed: "{t3}
  84. echo "#"
  85.  
  86. Set t `Evaluate {t2} - {t7}`
  87. if "{1}" == 'clean'
  88.     Echo "# Time required to Clean & Build all of the drivers: {t} seconds."
  89. else
  90.     if "{1}" == 'full'
  91.         Echo "# Time required to do a full build all of the drivers: {t} seconds."
  92.     else
  93.         Echo "# Time required to do a build all of the drivers: {t} seconds."
  94.     end
  95. end
  96. Echo "#******************************************************************************************************"
  97.